package com.nsl.my_youlai.bbu2.model.bo.bbu.instances;

import com.nsl.my_youlai.bbu2.enums.BbuModelEnum;
import com.nsl.my_youlai.bbu2.enums.NetGenerationEnum;
import com.nsl.my_youlai.bbu2.enums.VendorEnum2;
import com.nsl.my_youlai.bbu2.model.bo.bbu.Bbu2;
import com.nsl.my_youlai.bbu2.model.bo.bbu.rules.BbuZx4gB8200SlotRules;
import lombok.Data;

@Data
public class BbuZx4gB8200 extends Bbu2 {

//    private BbuZx4gB8200SlotRules slotRules;

    static private String baseBoardSlots="3,4,5,6,7,8";
    static private String controlBoardSlots="1,2";
    static private String powerBoardSlots="14,15";

    public BbuZx4gB8200() {
        super();
        init();
    }

    public BbuZx4gB8200(int excelRowIndex, VendorEnum2 vendor, BbuModelEnum bbuModelEnum, Integer nodeId) {
        super(excelRowIndex,vendor,bbuModelEnum,nodeId,baseBoardSlots,controlBoardSlots,powerBoardSlots);
        init();
    }


    @Override
    public boolean equals(Object o){
        return super.equals(o);
    }


    private void init(){
        this.setVendor(VendorEnum2.ZHONG_XING);
        this.setBbuModelEnum(BbuModelEnum.BBU_B8200);
        BbuZx4gB8200SlotRules slotRules =new BbuZx4gB8200SlotRules();
        this.setSlotRules(slotRules);
    }

    @Override
    public void integrateBoards(Bbu2 sourceBbu, String cutoffsStringIndex) {
        super.integrateBoards(sourceBbu,cutoffsStringIndex,baseBoardSlots,controlBoardSlots,powerBoardSlots);
    }

    @Override
    public void bbuCheck(){
        //slot配合检查
        //最小配置检查
        for (int i = 0; i < this.soltIndexList.size(); i++) {
            Integer slotIndex=this.soltIndexList.get(i);

        }
        //主控混插检查

        //基带数量过多检查

        //电源能力检查

        //垮tac

    }
}
